<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>arguments学习</title>



    <script>
        function a() {
            console.log(arguments);
        }

        a(24, 214, 12, 41);

        function max() {

            var max = arguments[0];

            for (var i = 0; i < arguments.length; i++) {
                if (arguments[i] > max) {
                    max = arguments[i];
                }
            }
            console.log(max);
        }

        max(241, 21, 421, 4122, 214, 12, 141, 5225, 2421421)
    </script>

</head>

<body>

</body>

</html>